Skip to contentMethod: create(int, int)
      1: package de.fhdw.gaming.ipspiel23.c4.domain;
2: 
3: import de.fhdw.gaming.ipspiel23.c4.domain.impl.C4Position;
4: 
5: /**
6:  * A position on the connect four board.
7:  */
8: public interface IC4Position {
9:     /**
10:      * The zero-based row of this position.
11:      */
12:     int getRow();
13: 
14:     /**
15:      * The zero-based column of this position.
16:      */
17:     int getColumn();
18:     
19:     /**
20:      * Creates a position.
21:      * @param row the row of the position
22:      * @param column the column of the position
23:      * @return a {@link IC4Position} with the specified row and column.
24:      */
25:     static IC4Position create(final int row, final int column) {
26:         return new C4Position(row, column);
27:     }
28: }